package team.se.tms.service;

import team.se.tms.dto.Page;
import team.se.tms.dto.ParameterPage;
import team.se.tms.po.CourseInfo;

import java.util.List;

/**
 * Created by argentum on 2018/11/28.
 */

public interface CourseInfoService {

    Boolean saveCourseInfo(CourseInfo courseInfo) throws Exception;

    /**
     * 根据人才培养方案id获取课程信息
     *
     * @param talentTrainingProgramId 人才培养方案id
     * @param page 分页
     * @return 课程信息列表
     * @throws Exception 异常
     * @create on 2019/3/21 by winkyle
     */
    List<CourseInfo> listCourseInfos(String talentTrainingProgramId,Page page) throws Exception;
  //  List<CourseInfo> getCourseInfoByPaging2(ParameterPage parameterPage) throws Exception;

    /**
     * 修改课程信息
     * @param courseInfo
     * @return
     * @throws Exception
     * @create on 2018/12/29 by qingx
     */
    boolean modifyCourseInfo(CourseInfo courseInfo) throws Exception;

    /**
     * 删除课程信息
     * @param courseId
     * @return
     * @throws Exception
     * @create on 2018/12/29 by qingx
     */
    int removeCourseInfo(String courseId) throws Exception;

}
